package com.itheima.d5_resource;

/*
     目标：认识try-catch-finally。
 */
public class Test1 {



    public static void main(String[] args) {
        try {
            System.out.println("try执行");
            int[] arr  = {1,2,3};
            System.out.println(arr[1]);
            System.out.println("try执行第二次");
        } catch (Exception e) {
            System.out.println("catch执行");
        }finally {
            System.out.println("finally执行");
        }
        System.out.println("最后的执行");
    }
}
